<%@ page import="java.util.HashMap,common.CommonUtil,java.util.*,common.*" contentType="text/html; charset=utf-8" %><%
UserSession userSession = (UserSession)session.getAttribute("user"); 

String login_id = null;
String user_id = null;

if(userSession!= null){
	login_id = userSession.getLogin_id();
	user_id = userSession.getUser_id();
}

HashMap listMap=(HashMap)request.getAttribute("list_map");

HashMap map  = null;
ArrayList list=null;

HashMap map1 = null;
ArrayList list1=null;

if (listMap!=null){
    list=(ArrayList)listMap.get("mainContent");
    list1=(ArrayList)listMap.get("mainContent1");
}

String member_test_code 		= "";
String member_id 		= "";
String test_state 		= "";
String reg_dt 	= "";
String login_id_map 		= "";
String login_name 	= "";
String email	= "";
String cell_no	= "";

String rater_id 	= "";
String rating_state 		= "";
String rating_start_time 	= "";
String rating_close_time	= "";
String rating_reg_dt	= "";

String rating_grade = "";
String rating_cont = "";

String rating_detail_grade = "";

if(list != null){
	if(list.size() > 0){
		
		login_id_map = CommonUtil.nvl(Crypto.DecodeBySType((String)((HashMap)list.get(0)).get("login_id")));
		
		member_test_code = CommonUtil.nvl((String)((HashMap)list.get(0)).get("member_test_code"));		
		member_id = CommonUtil.nvl((String)((HashMap)list.get(0)).get("member_id"));
		test_state = CommonUtil.nvl((String)((HashMap)list.get(0)).get("test_state"));
		reg_dt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("reg_dt"));
		login_name = CommonUtil.nvl((String)((HashMap)list.get(0)).get("login_name"));
		
		
		email = CommonUtil.nvl((String)((HashMap)list.get(0)).get("email"));
		cell_no = CommonUtil.nvl((String)((HashMap)list.get(0)).get("cell_no"));
		rater_id = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rater_id"));
		rating_state = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rating_state"));
		rating_start_time = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rating_start_time"));
		rating_close_time = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rating_close_time"));
		rating_reg_dt = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rating_reg_dt"));
		
		rating_grade = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rating_grade"));
		rating_cont = CommonUtil.nvl((String)((HashMap)list.get(0)).get("rating_cont"));
		
		
	}
	
	if(rating_grade.equals("NL")){
		rating_detail_grade ="Novice Low";
	}else if(rating_grade.equals("NM")){
		rating_detail_grade ="Novice Mid";
	}else if(rating_grade.equals("NH")){
		rating_detail_grade ="Novice High";
	}else if(rating_grade.equals("IL")){
		rating_detail_grade ="Intermediate Low";
	}else if(rating_grade.equals("IM1")){
		rating_detail_grade ="Intermediate Mid1";
	}else if(rating_grade.equals("IM2")){
		rating_detail_grade ="Intermediate Mid2";
	}else if(rating_grade.equals("IM3")){
		rating_detail_grade ="Intermediate Mid3";
	}else if(rating_grade.equals("IH")){
		rating_detail_grade ="Intermediate High";
	}else if(rating_grade.equals("A")){
		rating_detail_grade ="Advanced";
	}
}


int total_num = 0;
String member_test_answer_id_1="";
String member_test_answer_id_2="";
String member_test_answer_id_3="";
String member_test_answer_id_4="";
String member_test_answer_id_5="";
String member_test_answer_id_6="";
String member_test_answer_id_7="";
String member_test_answer_id_8="";
String member_test_answer_id_9="";
String member_test_answer_id_10="";
String member_test_answer_id_11="";
String member_test_answer_id_12="";
String member_test_answer_id_13="";
String member_test_answer_id_14="";
String member_test_answer_id_15="";

String explane_id_1="";
String explane_id_2="";
String explane_id_3="";
String explane_id_4="";
String explane_id_5="";
String explane_id_6="";
String explane_id_7="";
String explane_id_8="";
String explane_id_9="";
String explane_id_10="";
String explane_id_11="";
String explane_id_12="";
String explane_id_13="";
String explane_id_14="";
String explane_id_15="";

String answer_cont_1="";
String answer_cont_2="";
String answer_cont_3="";
String answer_cont_4="";
String answer_cont_5="";
String answer_cont_6="";
String answer_cont_7="";
String answer_cont_8="";
String answer_cont_9="";
String answer_cont_10="";
String answer_cont_11="";
String answer_cont_12="";
String answer_cont_13="";
String answer_cont_14="";
String answer_cont_15="";

String file_path_1="";
String file_path_2="";
String file_path_3="";
String file_path_4="";
String file_path_5="";
String file_path_6="";
String file_path_7="";
String file_path_8="";
String file_path_9="";
String file_path_10="";
String file_path_11="";
String file_path_12="";
String file_path_13="";
String file_path_14="";
String file_path_15="";

if(list1 != null){
	if(list1.size() > 0){
		total_num = list1.size();
		for(int i=0 ; list1!=null && list1.size() > i ; i++){ 
			map1 = (HashMap)list1.get(i);
			
			if(i==0){
				member_test_answer_id_1 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				
				explane_id_1 = CommonUtil.nvl((String)map1.get("explane_id"));
				
				answer_cont_1 = CommonUtil.nvl((String)map1.get("answer_cont"));
				
				file_path_1 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==1){
				member_test_answer_id_2 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_2 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_2 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_2 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==2){
				member_test_answer_id_3 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_3 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_3 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_3 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==3){
				member_test_answer_id_4 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_4 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_4 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_4 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==4){
				member_test_answer_id_5 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_5 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_5 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_5 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==5){
				member_test_answer_id_6 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_6 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_6 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_6 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==6){
				member_test_answer_id_7 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_7 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_7 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_7 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==7){
				member_test_answer_id_8 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_8 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_8 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_8 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==8){
				member_test_answer_id_9 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_9 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_9 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_9 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==9){
				member_test_answer_id_10 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_10 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_10 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_10 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==10){
				member_test_answer_id_11 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_11 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_11 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_11 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==11){
				member_test_answer_id_12 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_12 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_12 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_12 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==12){
				member_test_answer_id_13 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_13 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_13 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_13 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==13){
				member_test_answer_id_14 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_14 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_14 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_14 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
			
			if(i==14){
				member_test_answer_id_15 = CommonUtil.nvl((String)map1.get("member_test_answer_id"));
				explane_id_15 = CommonUtil.nvl((String)map1.get("explane_id"));
				answer_cont_15 = CommonUtil.nvl((String)map1.get("answer_cont"));
				file_path_15 = CommonUtil.nvl((String)map1.get("member_test_record_file_path"));
			}
		}
	}
}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Result</title>
<link href="common/style.css" rel="stylesheet" type="text/css" />
<link href="common/result.css" rel="stylesheet" type="text/css" />
</head>
<script>
function display_grade(d){
	
	document.getElementById('NL').style.display = 'none';	
	document.getElementById('NM').style.display = 'none';
	document.getElementById('NH').style.display = 'none';
	document.getElementById('IL').style.display = 'none';
	document.getElementById('IM1').style.display = 'none';
	document.getElementById('IM2').style.display = 'none';
	document.getElementById('IM3').style.display = 'none';
	document.getElementById('IH').style.display = 'none';
	document.getElementById('A').style.display = 'none';
	
	document.getElementById(d).style.display = 'block';
}

function display_grade_back(d){
	
	document.getElementById('NL').style.display = 'none';	
	document.getElementById('NM').style.display = 'none';
	document.getElementById('NH').style.display = 'none';
	document.getElementById('IL').style.display = 'none';
	document.getElementById('IM1').style.display = 'none';
	document.getElementById('IM2').style.display = 'none';
	document.getElementById('IM3').style.display = 'none';
	document.getElementById('IH').style.display = 'none';
	document.getElementById('A').style.display = 'none';
	
	document.getElementById(d).style.display = 'block';
}
</script>
<script>
function Mplayer_Player_Base(){
	var m_w, m_h;
	var tag;
	m_w = 0;
	m_h = 0;
	tag = "<OBJECT ID='MediaPlayer' Name='MediaPlayer' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject ' bgcolor='DarkBlue' width='"+ m_w +"' Height='"+ m_h +"' VIEWASTEXT style='FILTER:gray()'>"
                + "<PARAM NAME='AutoStart' VALUE='1'>"
                + "<PARAM NAME='AutoSize' VALUE='1'>"
                + "<PARAM NAME='AnimationAtStart' VALUE='0'>"
                + "<PARAM NAME='DisplayMode' VALUE='3'>"
                + "<PARAM NAME='Enabled' VALUE='1'>"
                + "<PARAM NAME='ShowControls' VALUE='1'>"
                + "<PARAM NAME='ShowAudioControls' VALUE='1'>"
                + "<PARAM NAME='ShowDisplay' VALUE='0'>"
                + "<PARAM NAME='ShowGotoBar' VALUE='0'>"
                + "<PARAM NAME='ShowPositionControls' VALUE='1'>"
                + "<PARAM NAME='ShowStatusBar' VALUE='0'>"
                + "<PARAM NAME='Volume' VALUE='50'>"
                + "<PARAM NAME='ShowCaptioning' VALUE='0'>"
                + "<PARAM NAME='TransparentAtStart' value='1'>"				
				+ "</OBJECT>";

	  document.write(tag);	 
	  
}
function Mplayer_Player(f){
MediaPlayer.Filename = f;
MediaPlayer.play();
}

function Mplayer_Player_explane_stop(){
	MediaPlayer.stop();
}


function record_listen(record_file_url){
	var test_url = "/uploads/preptest/"+record_file_url;
	Mplayer_Player(test_url);	
}

function explane_player(explane_file_url){
	var test_url = "/uploads/prepexam/"+explane_file_url;
	Mplayer_Player(test_url);	
}

function listen_result(re){
	var test_url =  "/uploads/preptest/"+re;
	Mplayer_Player(test_url);	
}

function record_stop(){
	Mplayer_Player_explane_stop();
}

function go_download(id,name,folder){
	var frm = document.downform;	
	frm.cmd.value='download';
	frm.file_id.value=id;
	frm.file_name.value=name;
	frm.file_folder.value=folder;
	frm.action = '/speaking.pb';
	frm.target= '_self';              
	frm.submit();
}
</script>
<SCRIPT FOR="MediaPlayer" EVENT="EndOfStream(mState)" LANGUAGE="JavaScript"> 
if (mState == 0)
{
	if(MediaPlayer.PlayCount==1)
	{
		alert("Play Stop");
	}
}
</SCRIPT>
<body>

<script>
function report_view(g){
	
	if(g == 'test'){
		document.getElementById("testReport").style.display = "block";
		document.getElementById("ratingReport").style.display = "none";
	}else if(g == 'rating'){
		document.getElementById("testReport").style.display = "none";
		document.getElementById("ratingReport").style.display = "block";
	}
}
</script> 
 
<div id="testReport">
	<div id="result_wrap">
    <div id="resultContainer">
      
      <div id="resultHeader">
        <ul class="topBtn">
          <li><a href="#" onclick="report_view('test')" class="btn1_on" >test report</a></li>
          <li><a href="#" onclick="report_view('rating')" class="btn2"  style="display:<%=(!rating_state.equals("2"))?"none":"block" %>">rating report</a></li>
        </ul>
        <span class="close"><a href="#" onclick="self.close()"><img src="img/btn_test_close02.gif" alt="Close" /></a></span>
      </div>
      <p id="topEmpty"></p>
      <div id="resultBody">
        <div id="resultContents">
          <div class="reStudy">            
            <div class="reView">
              <table align="center">
                <tr>
                  <td width="100" class="al"><strong> Question 1</strong></td>
                  <td align="center"><a href="#" onclick="explane_player('<%=explane_id_1%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_1%>/<%=member_test_answer_id_1%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td width="100" class="al"><strong> Question 9</strong></td>
                  <td align="center"><a href="#" onclick="explane_player('<%=explane_id_9%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_9%>/<%=member_test_answer_id_9%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_1 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_9 %></td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 2</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_2%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_2%>/<%=member_test_answer_id_2%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"><strong> Question 10</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_10%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_10%>/<%=member_test_answer_id_10%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_2 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_10 %></td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 3</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_3%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_3%>/<%=member_test_answer_id_3%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"><strong> Question 11</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_11%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_11%>/<%=member_test_answer_id_11%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_3 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_11 %></td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 4</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_4%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_4%>/<%=member_test_answer_id_4%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"><strong> Question 12</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_12%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_12%>/<%=member_test_answer_id_12%>')"><img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_4 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_12 %></td>
                </tr>
                <%if(total_num>12){ %>
                <tr>
                  <td class="al"><strong> Question 5</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_5%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_5%>/<%=member_test_answer_id_5%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"><strong> Question 13</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_13%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_13%>/<%=member_test_answer_id_13%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_5 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_13 %></td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 6</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_6%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_6%>/<%=member_test_answer_id_6%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"><strong> Question 14</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_14%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_14%>/<%=member_test_answer_id_14%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_6 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_14 %></td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 7</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_7%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_7%>/<%=member_test_answer_id_7%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"><strong> Question 15</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_15%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_15%>/<%=member_test_answer_id_15%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_7 %></td>
                  <td width="100" class="anSwer"><strong> 모범답안</strong></td>
                  <td class="anSwer"><%=answer_cont_15 %></td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 8</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_8%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_8%>/<%=member_test_answer_id_8%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al">&nbsp;</td>
                  <td align="center" class="al">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_8 %></td>
                  <td width="100" class="anSwer">&nbsp;</td>
                  <td class="anSwer">&nbsp;</td>
                </tr>
                <%}else{ %>
                <tr>
                  <td class="al"><strong> Question 5</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_5%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_5%>/<%=member_test_answer_id_5%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"></td>
                  <td align="center" class="al"></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_5 %></td>
                  <td width="100" class="anSwer">&nbsp;</td>
                  <td class="anSwer">&nbsp;</td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 6</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_6%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_6%>/<%=member_test_answer_id_6%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"></td>
                  <td align="center" class="al"></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_6 %></td>
                  <td width="100" class="anSwer">&nbsp;</td>
                  <td class="anSwer">&nbsp;</td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 7</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_7%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_7%>/<%=member_test_answer_id_7%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al"></td>
                  <td align="center" class="al"></td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_7 %></td>
                  <td width="100" class="anSwer">&nbsp;</td>
                  <td class="anSwer">&nbsp;</td>
                </tr>
                <tr>
                  <td class="al"><strong> Question 8</strong></td>
                  <td align="center" class="al"><a href="#" onclick="explane_player('<%=explane_id_8%>')"><img src="img/btn_qlisten.gif"alt="문제듣기" /></a> <a href="#" onclick="listen_result('<%=file_path_8%>/<%=member_test_answer_id_8%>')"> <img src="img/btn_listen2.gif" alt="녹음듣기" /></a> <a href="#" onclick="Mplayer_Player_explane_stop()"><img src="img/btn_listen_end.gif" width="65" height="16" alt="녹음종료" /></a></td>
                  <td class="al">&nbsp;</td>
                  <td align="center" class="al">&nbsp;</td>
                </tr>
                <tr>
                  <td width="100" class="anSwer" height=30><strong> 모범답안</strong></td>
                  <td  class="anSwer"><%=answer_cont_8 %></td>
                  <td width="100" class="anSwer">&nbsp;</td>
                  <td class="anSwer">&nbsp;</td>
                </tr>
                <%} %>
              </table>
              
            </div>
          </div>
        </div>
      </div>
      
      <div id="resultFooter">
        <p><img src="img/bg_result_footer.gif" /></p>
      </div>
      
    </div>
  </div>
</div>


<div id="ratingReport" style="display:none">
  <div id="result_wrap">
    <div id="resultContainer">
      
      <div id="resultHeader">
        <ul class="topBtn">
          <li><a href="#" class="btn1" onclick="report_view('test')">test report</a></li>
          <li><a href="#" class="btn2_on" onclick="report_view('rating')">rating report</a></li>
        </ul>
        <span class="close"><a href="#" onclick="self.close()"><img src="img/btn_test_close02.gif" alt="Close" /></a></span>
      </div>
      <p id="topEmpty"></p>
      <div id="resultBody">
        <div id="resultContents">
          <div class="page1">
            <div class="testName">
              <!-- 
              <dl>
                <dt class="testName1">Tester Name :</dt>
                <dd class="testName2"><%=login_name %></dd>
              </dl>
               -->
              <table>
                <tr>
                  <th>Tester Name</th>
                  <th>Test Date</th>
                  <th>Test Serial Number</th>
                </tr>
                <tr>
                  <td><b class="blue12"><%=login_name %></b></td>
                  <td><%=reg_dt %></td>
                  <td><%=member_test_code %></td>
                </tr>
              </table>
            </div>
            
            <div class="Frate">
              <dl>
                <dt>＊Final Rating :</dt>
                <dd><a href="#"><%=rating_grade %>(<%=rating_detail_grade %>)</a></dd>
              </dl>
            </div>
            
            
            <div class="rComment">
              <dl>
                <dt class="rComment1">Rater Comment</dt>
                <dd>
                  <textarea name="textfield" id="textfield"><%=rating_cont %></textarea>
                </dd>
              </dl>
            </div>
            
            
            <div class="rSystem">
              <dl>
                <dt class="rSystem1">Level Description</dt>
                <dd>
                  <div class="systemForm">
                    <div class="rlist">
                      <ul>
                        <li><a href="#" class="btn<%=(rating_grade.equals("A"))?"_on":"" %>" onmouseover="display_grade('A')" onmouseout="display_grade_back('<%=rating_grade%>')">Advanced</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("IH"))?"_on":"" %>" onmouseover="display_grade('IH')" onmouseout="display_grade_back('<%=rating_grade%>')">Intermediate High</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("IM3"))?"_on":"" %>" onmouseover="display_grade('IM3')" onmouseout="display_grade_back('<%=rating_grade%>')">Intermediate Mid3</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("IM2"))?"_on":"" %>" onmouseover="display_grade('IM2')" onmouseout="display_grade_back('<%=rating_grade%>')">Intermediate Mid2</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("IM1"))?"_on":"" %>" onmouseover="display_grade('IM1')" onmouseout="display_grade_back('<%=rating_grade%>')">Intermediate Mid1</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("IL"))?"_on":"" %>" onmouseover="display_grade('IL')" onmouseout="display_grade_back('<%=rating_grade%>')">Intermediate Low</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("NH"))?"_on":"" %>" onmouseover="display_grade('NH')" onmouseout="display_grade_back('<%=rating_grade%>')">Novice High</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("NM"))?"_on":"" %>" onmouseover="display_grade('NM')" onmouseout="display_grade_back('<%=rating_grade%>')">Novice Mid</a></li>
                        <li><a href="#" class="btn<%=(rating_grade.equals("NL"))?"_on":"" %>" onmouseover="display_grade('NL')" onmouseout="display_grade_back('<%=rating_grade%>')">Novice Low</a></li>
                      </ul>
                    </div>
                    <div class="rform" id="NL" style="display:<%=(rating_grade.equals("NL"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">                        						
						Speakers at the <span class="red12">Novice-Low</span> level have no real functional ability and, because of their pronunciation, they may be unintelligible. Given adequate time and familiar cues, they may be able to exchange greetings, give their identity, and name a number of familiar objects from their immediate environment. They are unable to perform functions or handle topics pertaining to the Intermediate level, and cannot therefore participate in a true conversational exchange.
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="NM" style="display:<%=(rating_grade.equals("NM"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">                        						
						Speakers at the <span class="red12">Novice-Mid</span> level communicate minimally and with difficulty by using a number of isolated words and memorized phrases limited by the particular context in which the language has been learned. When responding to direct questions, they may utter only two or three words at a time or an occasional stock answer. They pause frequently as they search for simple vocabulary or attempt to recycle their own and their interlocutor'?s words. Because of hesitations, lack of vocabulary, inaccuracy, or failure to respond appropriately, Novice-Mid speakers may be understood with great difficulty even by sympathetic interlocutors accustomed to dealing with non-natives. When called on to handle topics by performing functions associated with the Intermediate level, they frequently resort to repetition, words from their native language, or silence. 
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="NH" style="display:<%=(rating_grade.equals("NH"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">                        						
						Speakers at the <span class="red12">Novice-High</span> level are able to handle a variety of tasks pertaining to the Intermediate level, but are unable to sustain performance at that level. They are able to manage successfully a number of uncomplicated communicative tasks in straightforward social situations. Conversation is restricted to a few of the predictable topics necessary for survival in the target language culture, such as basic personal information, basic objects and a limited number of activities, preferences and immediate needs. Novice-High speakers respond to simple, direct questions or requests for information; they are able to ask only a very few formulaic questions when asked to do so. 
						<!-- 
						<br>
						Novice-High speakers are able to express personal meaning by relying heavily on learned phrases or recombinations of these and what they hear from their interlocutor. Their utterances, which consist mostly of short and sometimes incomplete sentences in the present, may be hesitant or inaccurate. On the other hand, since these utterances are frequently only expansions of learned material and stock phrases, they may sometimes appear surprisingly fluent and accurate. These speakers' first language may strongly influence their pronunciation, as well as their vocabulary and syntax when they attempt to personalize their utterances. Frequent misunderstandings may arise but, with repetition or rephrasing, Novice-High speakers can generally be understood by sympathetic interlocutors used to non-natives. When called on to handle simply a variety of topics and perform functions pertaining to the Intermediate level, a Novice-High speaker can sometimes respond in intelligible sentences, but will not be able to sustain sentence level discourse. 
						  -->
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="IL" style="display:<%=(rating_grade.equals("IL"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">                        						
						Speakers at the <span class="red12">Intermediate-Low</span> level are able to handle successfully a limited number of uncomplicated communicative tasks by creating with the language in straightforward social situations. Conversation is restricted to some of the concrete exchanges and predictable topics necessary for survival in the target language culture. These topics relate to basic personal information covering, for example, self and family, some daily activities and personal preferences, as well as to some immediate needs, such as ordering food and making simple purchases. At the Intermediate-Low level, speakers are primarily reactive and struggle to answer direct questions or requests for information, but they are also able to ask a few appropriate questions. 
						<!-- 
						<br>
						Intermediate-Low speakers express personal meaning by combining and recombining into short statements what they know and what they hear from their interlocutors. Their utterances are often filled with hesitancy and inaccuracies as they search for appropriate linguistic forms and vocabulary while attempting to give form to the message. Their speech is characterized by frequent pauses, ineffective reformulations and self-corrections. Their pronunciation, vocabulary and syntax are strongly influenced by their first language but, in spite of frequent misunderstandings that require repetition or rephrasing, Intermediate-Low speakers can generally be understood by sympathetic interlocutors, particularly by those accustomed to dealing with non-natives. 
						 -->
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="IM1" style="display:<%=(rating_grade.equals("IM1"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">
                        						
						Speakers at the <span class="red12">Intermediate-Mid</span> level are able to handle successfully a variety of uncomplicated communicative tasks in straightforward social situations. Conversation is generally limited to those predictable and concrete exchanges necessary for survival in the target culture; these include personal information covering self, family, home, daily activities, interests and personal preferences, as well as physical and social needs, such as food, shopping, travel and lodging. 
						<!-- 
						<br>
						Intermediate-Mid speakers tend to function reactively, for example, by responding to direct questions or requests for information. However, they are capable of asking a variety of questions when necessary to obtain simple information to satisfy basic needs, such as directions, prices and services. When called on to perform functions or handle topics at the Advanced level, they provide some information but have difficulty linking ideas, manipulating time and aspect, and using communicative strategies, such as circumlocution. 
						<br>
						Intermediate-Mid speakers are able to express personal meaning by creating with the language, in part by combining and recombining known elements and conversational input to make utterances of sentence length and some strings of sentences. Their speech may contain pauses, reformulations and self-corrections as they search for adequate vocabulary and appropriate language forms to express themselves. Because of inaccuracies in their vocabulary and/or pronunciation and/or grammar and/or syntax, misunderstandings can occur, but Intermediate-Mid speakers are generally understood by sympathetic interlocutors accustomed to dealing with non-natives. 
						 -->
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="IM2" style="display:<%=(rating_grade.equals("IM2"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">
                        						
						Speakers at the <span class="red12">Intermediate-Mid</span> level are able to handle successfully a variety of uncomplicated communicative tasks in straightforward social situations. Conversation is generally limited to those predictable and concrete exchanges necessary for survival in the target culture; these include personal information covering self, family, home, daily activities, interests and personal preferences, as well as physical and social needs, such as food, shopping, travel and lodging. 
						<!-- 
						<br>
						Intermediate-Mid speakers tend to function reactively, for example, by responding to direct questions or requests for information. However, they are capable of asking a variety of questions when necessary to obtain simple information to satisfy basic needs, such as directions, prices and services. When called on to perform functions or handle topics at the Advanced level, they provide some information but have difficulty linking ideas, manipulating time and aspect, and using communicative strategies, such as circumlocution. 
						<br>
						Intermediate-Mid speakers are able to express personal meaning by creating with the language, in part by combining and recombining known elements and conversational input to make utterances of sentence length and some strings of sentences. Their speech may contain pauses, reformulations and self-corrections as they search for adequate vocabulary and appropriate language forms to express themselves. Because of inaccuracies in their vocabulary and/or pronunciation and/or grammar and/or syntax, misunderstandings can occur, but Intermediate-Mid speakers are generally understood by sympathetic interlocutors accustomed to dealing with non-natives. 
						 -->
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="IM3" style="display:<%=(rating_grade.equals("IM3"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">
                        						
						Speakers at the <span class="red12">Intermediate-Mid</span> level are able to handle successfully a variety of uncomplicated communicative tasks in straightforward social situations. Conversation is generally limited to those predictable and concrete exchanges necessary for survival in the target culture; these include personal information covering self, family, home, daily activities, interests and personal preferences, as well as physical and social needs, such as food, shopping, travel and lodging. 
						<!-- 
						<br>
						Intermediate-Mid speakers tend to function reactively, for example, by responding to direct questions or requests for information. However, they are capable of asking a variety of questions when necessary to obtain simple information to satisfy basic needs, such as directions, prices and services. When called on to perform functions or handle topics at the Advanced level, they provide some information but have difficulty linking ideas, manipulating time and aspect, and using communicative strategies, such as circumlocution. 
						<br>
						Intermediate-Mid speakers are able to express personal meaning by creating with the language, in part by combining and recombining known elements and conversational input to make utterances of sentence length and some strings of sentences. Their speech may contain pauses, reformulations and self-corrections as they search for adequate vocabulary and appropriate language forms to express themselves. Because of inaccuracies in their vocabulary and/or pronunciation and/or grammar and/or syntax, misunderstandings can occur, but Intermediate-Mid speakers are generally understood by sympathetic interlocutors accustomed to dealing with non-natives. 
						 -->
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="IH" style="display:<%=(rating_grade.equals("IH"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">
                        						
						<span class="red12">Intermediate-High</span> speakers are able to converse with ease and confidence when dealing with most routine tasks and social situations of the Intermediate level. They are able to handle successfully many uncomplicated tasks and social situations requiring an exchange of basic information related to work, school, recreation, particular interests and areas of competence, though hesitation and errors may be evident. 
						<!-- 
						<br>
						Intermediate-High speakers handle the tasks pertaining to the Advanced level, but they are unable to sustain performance at that level over a variety of topics. With some consistency, speakers at the Intermediate High level narrate and describe in major time frames using connected discourse of paragraph length. However, their performance of these Advanced-level tasks will exhibit one or more features of breakdown, such as the failure to maintain the narration or description semantically or syntactically in the appropriate major time frame, the disintegration of connected discourse, the misuse of cohesive devises, a reduction in breadth and appropriateness of vocabulary, the failure to successfully circumlocute, or a significant amount of hesitation. 
						<br>
						Intermediate-High speakers can generally be understood by native speakers unaccustomed to dealing with non-natives, although the dominant language is still evident (e.g. use of code-switching, false cognates, literal translations, etc.), and gaps in communication may occur. 
						 -->
						</dd>
                      </dl>
                    </div>
                    
                    <div class="rform" id="A" style="display:<%=(rating_grade.equals("A"))?"block":"none" %>">
                      <dl>
                        <dd class="tField">
                        						
						Speakers at the <span class="red12">Advanced-Low</span> level are able to handle a variety of communicative tasks, although somewhat haltingly at times. They participate actively in most informal and a limited number of formal conversations on activities related to school, home, and leisure activities and, to a lesser degree, those related to events of work, current, public, and personal interest or individual relevance. 
						<!-- 
						<br>
						Advanced-Low speakers demonstrate the ability to narrate and describe in all major time frames (past, present and future) in paragraph length discourse, but control of aspect may be lacking at times. They can handle appropriately the linguistic challenges presented by a complication or unexpected turn of events that occurs within the context of a routine situation or communicative task with which they are otherwise familiar, though at times their discourse may be minimal for the level and strained. Communicative strategies such as rephrasing and circumlocution may be employed in such instances. In their narrations and descriptions, they combine and link sentences into connected discourse of paragraph length. When pressed for a fuller account, they tend to grope and rely on minimal discourse. Their utterances are typically not longer than a single paragraph. Structure of the dominant language is still evident in the use of false cognates, literal translations, or the oral paragraph structure of the speaker's own language rather than that of the target language. 
						<br>
						While the language of Advanced-Low speakers may be marked by substantial, albeit irregular flow, it is typically somewhat strained and tentative, with noticeable self-correction and a certain grammatical roughness. The vocabulary of Advanced-Low speakers is primarily generic in nature. 
						<br>
						Advanced-Low speakers contribute to the conversation with sufficient accuracy, clarity, and precision to convey their intended message without misrepresentation or confusion, and it can be understood by native speakers unaccustomed to dealing with non-natives, even though this may be achieved through repetition and restatement. When attempting to perform functions or handle topics associated with the Superior level, the linguistic quality and quantity of their speech will deteriorate significantly. 
						 -->
						</dd>
                      </dl>
                    </div>
                    
                  </div>
                </dd>
              </dl>
            </div>
            
          </div>
        </div>
      </div>
      
      <div id="resultFooter">
        <p><img src="img/bg_result_footer.gif" /></p>
      </div>
      
    </div>
  </div>
</div>

<script>
Mplayer_Player_Base();
</script> 
</body>
</html>

